package cn.ililes.tools.nosql.spring.tests;

import java.util.ArrayList;
import java.util.List;

import cn.ilikes.tools.nosql.test.jpa.pojos.Cycles;
import cn.ilikes.tools.nosql.test.jpa.pojos.EmployeeGroup;
import cn.ililes.tools.nosql.tests.springs.ICycleService;

public class Test extends BaseTest {

	public void testA() {
		int id = 21234;
		ICycleService cycleService = getService("ICycleService");
		//		Cycles cycles=new Cycles();
		//		cycles.setUuid(id);
		//		cycles.setCyclesName("真的没有想到一个没有文学底蕴的人能写出这样好的做品");
		//                    List<EmployeeGroup> employeeGroups=new  ArrayList<EmployeeGroup>();
		//                   for(int i=0;i<100;i++)
		//                   {
		//                    EmployeeGroup employeeGroup =new EmployeeGroup();
		//                    employeeGroup.setUuid(id+100+i);
		//                    employeeGroup.setGroupName("没有文学底蕴");
		//                    employeeGroup.setCycles(cycles);
		//                    employeeGroups.add(employeeGroup);
		//                   }
		//                   cycles.setEmployeeGroups(employeeGroups);
		//		cycleService.addCycle(cycles);
		//		Cycles   cycles_ = cycleService.getCycleBYId(1234567813);
		//		System.out.println("==============  "+cycles_.getCyclesName());
		//		cycleService.delCycleById(id);
		//		cycleService.selectEmployeeGroupByCycleId("12345600");
		cycleService.selectEmployeeGroupByName("有文学");
	}

}
